<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>首页</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="stylesheet" type="text/css" href="/Public/Dt/libs/bootstrap/css/bootstrap.min.css"/>
		
		<link rel="stylesheet" type="text/css" href="/Public/Dt/css/base.css?v=0.0.3"/>
		<link rel="stylesheet" type="text/css" href="/Public/Dt/css/style.css?v=0.0.3"/>
		<link rel="stylesheet" type="text/css" href="/Public/Dt/css/moble.css?v=0.0.3"/>
		
	</head>
	<body>
		<div class="zhegai"></div>
		<div class="left_box">
			<div class="logo_box">
				<img src="/Public/Dt/img/pcLogo.png"/>
			</div>

			<div class="nav_box">
				<ul class="nav_contai">
					<li class="nav_list <?php if(checknav('index.html') == 1 ): ?>active<?php endif; ?>">
						<a href="index.html"><i class="nav_icon nav_shouye"></i>首页</a>
					</li>
					<li class="nav_list <?php if(checknav('hyzl.html') == 1 or checknav('xgzl.html') == 1 or checknav('czmm.html') == 1 or checknav('hyft.html') == 1 or checknav('sqtd.html') == 1): ?>active<?php endif; ?>">
						<a href="javascript:;"><i class="nav_icon nav_grzx"></i>用户资料<i class="jt"></i></a>
						<dl class="towlave" <?php if(checknav('hyzl.html') == 1 or checknav('xgzl.html') == 1 or checknav('czmm.html') == 1 or checknav('hyft.html') == 1 or checknav('sqtd.html') == 1): ?>style="display: block;"<?php endif; ?>>
							<dd><a href="/user/hyzl.html">会员资料</a></dd>
							<dd><a href="/user/xgzl.html">修改资料</a></dd>
							<dd><a href="/user/czmm.html">重置密码</a></dd>
							<dd><a href="/user/hyft.html">会员复投</a></dd>
							<dd><a href="/user/sqtd.html">申请退单</a></dd>
						</dl>
					</li>
					<li class="nav_list <?php if(checknav('zchy.html') == 1 or checknav('jbsj.html') == 1 or checknav('wdhy.html') == 1 ): ?>active<?php endif; ?>">
						<a href="javascript:;"><i class="nav_icon nav_ywgl"></i>代理管理<i class="jt"></i></a>
						<dl class="towlave" <?php if(checknav('zchy.html') == 1 or checknav('jbsj.html') == 1 or checknav('wdhy.html') == 1 ): ?>style="display: block;"<?php endif; ?>>
							<dd><a href="/user/zchy.html">注册会员</a></dd>
							<dd><a href="/user/jbsj.html">成为代理</a></dd>
							<dd><a href="/user/wdhy.html">我的会员</a></dd>
						</dl>
					</li>
					<li class="nav_list <?php if(checknav('jjmx.html') == 1 or checknav('wycz.html') == 1 or checknav('hbzh.html') == 1 or checknav('top_up.html') == 1 or checknav('txgl.html') == 1 ): ?>active<?php endif; ?>">
						<a href="javascript:;"><i class="nav_icon nav_tdgl"></i>我的财务<i class="jt"></i></a>
						<dl class="towlave" <?php if(checknav('jjmx.html') == 1 or checknav('wycz.html') == 1 or checknav('hbzh.html') == 1 or checknav('top_up.html') == 1 or checknav('txgl.html') == 1 ): ?>style="display: block;"<?php endif; ?>>
							<dd><a href="/user/jjmx.html">奖金明细</a></dd>
							<dd><a href="/user/wycz.html">我要投资</a></dd>
							<dd><a href="/user/top_up.html">我要充值</a></dd>
							<dd><a href="/user/hbzh.html">货币转换</a></dd>
							<dd><a href="/user/txgl.html">提现管理</a></dd>
						</dl>
					</li>
					<li class="nav_list <?php if(checknav('xwgg.html') == 1 or checknav('wyly.html') == 1 or checknav('lyxq.html') == 1 ): ?>active<?php endif; ?>">
						<a href="javascript:;"><i class="nav_icon nav_cwgl"></i>系统公告<i class="jt"></i></a>
						<dl class="towlave" <?php if(checknav('xwgg.html') == 1 or checknav('wyly.html') == 1 or checknav('lyxq.html') == 1 ): ?>style="display: block;"<?php endif; ?>>
							<dd><a href="/user/xwgg.html">新闻公告</a></dd>
							<dd><a href="/user/wyly.html">我要留言</a></dd>
							<dd><a href="/user/lyxq.html">留言列表</a></dd>
						</dl>
					</li>
				</ul>
				<div class="exit_box text_c">
					<a href="javascript:;">
						<p class="exit_icon"><img src="/Public/Dt/img/exit.png"/></p>
						<p><a href="/user/logout.html">安全退出</a></p>
					</a>
				</div>
			</div>
		</div>

		<div class="right_box">
			<div class="topbar">
				<div class="float_r topbar_user">
					<div class="user_box">
						<div class="tx_img">
							<img src="/Public/Dt/img/touxiang.png">
						</div>
						<div class="text_l user_info">
							<p><?php echo (session('username')); ?></p>
						</div>
					</div>
				</div>
				<div class="nav_btn visible-xs-block float_r">
					<i class="glyphicon glyphicon-th-list"></i>
				</div>
			</div>

			
	<div class="right_main">
		<div class="panel panel-default">
		  	<div class="panel-heading">
		  		<i class="inde_icon icon_jjmx"></i>货币转换</span>
		  	</div>
	  		<div class="panel-body">
				<div class="row-fluid">
					<div class="span12">
						<div class="tabbable" id="tabs-402357">
							<ul class="nav nav-tabs">
								<li class="active">
									<a href="#panel-401018" data-toggle="tab">转账记录</a>
								</li>
								<li>
									<a href="#panel-862181" data-toggle="tab">积分互转</a>
								</li>
			
							</ul>
							<div class="tab-content">
								<div class="tab-pane " id="panel-862181">
									<div class="h-30"></div>
									<form class="form-horizontal" action="/user/zh_form" method="post">
										<div class="form-group">
											<label for="inputEmail3" class="col-sm-2 control-label">转出钱包</label>
											<div class="col-sm-3 pad-top-4" style="margin-top: 10px;">
												<select name="zhc" id="zhc" onchange="gradeChange()">
													<option value="1">直接提现钱包</option>
													<option value="2">季度分红钱包</option>
												</select>
												<input type="hidden" value="<?php echo ($user["cashmoney"]); ?>" id="cash">
												<input type="hidden" value="<?php echo ($user["halfmoney"]); ?>" id="half">
												<input type="hidden" value="<?php echo ($user["yearmoney"]); ?>" id="year">
												<input type="hidden" value="<?php echo ($user["zhitui"]); ?>" id="for">
											</div>
										</div>
										<div class="form-group">
											<label for="inputPassword3" class="col-sm-2 control-label">转出钱包余额</label>
											<div class="col-sm-3 pad-top-8">
												<p class="yue"><?php echo ($user["cashmoney"]); ?></p>
											</div>
										</div>
										<div class="form-group">
											<label for="inputEmail3" class="col-sm-2 control-label">转入钱包</label>
											<div class="col-sm-3 pad-top-4" style="margin-top: 5px;">
												<select name="zhr" id="zhr" onchange="gradeChange2()">
													<option value="3">半年分红钱包</option>
													<!-- <option value="4">直推奖金钱包</option> -->
												</select>
											</div>
										</div>
										<div class="form-group">
											<label for="inputPassword3" class="col-sm-2 control-label">转入钱包余额</label>
											<div class="col-sm-3 pad-top-8">
												<p class="ban"><?php echo ($user["yearmoney"]); ?></p>
											</div>
										</div>
										<div class="form-group">
											<label for="inputPassword3" class="col-sm-2 control-label">转换比例</label>
											<div class="col-sm-3 pad-top-8">
												<p>1.0:1.0</p>
											</div>
										</div>
										<div class="form-group pp">
											<label for="inputPassword3" class="col-sm-2 control-label">转换金额<span>*</span></label>
											<div class="col-sm-3">
												<input type="text" class="form-control" id="inputPassword3" name="price">
											</div>
										</div>
										<div class="form-group pp">
											<label for="inputPassword3" class="col-sm-2 control-label">二级密码<span>*</span></label>
											<div class="col-sm-3">
												<input type="password" class="form-control" id="inputPassword3" name="mm2">
											</div>
										</div>
										<div class="form-group">
											<div class="col-sm-offset-2 col-sm-3">
												<button type="submit" class="btn btn-primary">提交</button>
											</div>
										</div>
									</form>
								</div>
								<div class="tab-pane active" id="panel-401018">
									<div class="h-30"></div>
									<div class="table-responsive">
										<table class="table">
											<tr>
												<th>转出钱包</th>
												<th>转入钱包</th>
												<th>转换比例</th>
												<th>转换金额</th>
												<th>日期</th>
											</tr>
											<?php if(is_array($list)): foreach($list as $key=>$v): ?><tr>
													<td><?php echo ($v["zhc"]); ?></td>
													<td><?php echo ($v["zhr"]); ?></td>
													<td><?php echo ($v["zhbl"]); ?></td>
													<td><?php echo ($v["price"]); ?></td>
													<td><?php echo (date("Y/m/d H:i:s",$v["zhtime"])); ?></td>
												</tr><?php endforeach; endif; ?>
										</table>
									</div>
									<div class="f-right">
										<ul class="pagination">
											<?php echo ($page); ?>
										</ul>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>

		</div>

		<script type="text/javascript" charset="utf-8" src="/Public/Dt/libs/bootstrap/js/jquery.min.js?v=0.0.1"></script>
		<script type="text/javascript" charset="utf-8" src="/Public/Dt/js/jxmc.js?v=0.0.1"></script>
		<script type="text/javascript" charset="utf-8" src="/Public/Dt/libs/bootstrap/js/bootstrap.min.js?v=0.0.1"></script>

		
	<script>
		function gradeChange(){
       		var str=$('#zhc').val();
       		if(str==1){
				var yue=$('#cash').val();
				// alert(yue);
       			$('.yue').text(yue);

       		}else if(str==2){
       			var yue=$('#half').val();
       			// alert(yue);
       			$('.yue').text(yue);
			}
		}
		function gradeChange2(){
			var str=$('#zhr').val();
			if(str==3){
				var ban=$('#year').val();
				// alert(ban);
				$('.ban').text(ban);
			}else if(str==4){
				var ban=$('#for').val();
				// alert(ban);
				$('.ban').text(ban);   		
			}
		}
	</script>

	</body>
</html>